# Contributor: Guy Godfroy <guy.godfroy@gugod.fr>
# Contributor: Denis Salem <denissalem@tuxfamily.org>
# Maintainer: Guy Godfroy <guy.godfroy@gugod.fr>
pkgname=venc
_pkgname=VenC
pkgver=3.2.4
pkgrel=0
pkgdesc="Static blog generator"
url="https://venc.software/"
arch="noarch"
license="GPL-3.0-or-later"
depends="py3-yaml py3-unidecode"
makedepends="py3-gpep517 py3-flit-core"
source="$_pkgname-v$pkgver.tar.gz::https://framagit.org/denissalem/VenC/-/archive/v$pkgver/$_pkgname-v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-v$pkgver"
options="!check" # no test scripts available for now
subpackages="$pkgname-pyc"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
6308e05b82c705f8d90fce26156b1533c28f17ebb3e019e7974be2609d036d8a9c38bb59612a7b889cd6e5d1f194e014d9fe3017d9c64681a15e5a0c359f3611  VenC-v3.2.4.tar.gz
"
